Skip to content

Handle non-string return values from the user's prompt function - #344

Merged
David Wilson (daviwil) merged 1 commit into
developfrom
daviwil/fix-debug-prompt
Jan 18, 2017
Merged

David Wilson (daviwil) merged 1 commit into
developfrom
daviwil/fix-debug-prompt

Conversation

@daviwil

Copy link
Copy Markdown
Contributor

This change adds a catch for the InvalidCastException when gathering the
user's prompt string in the case where their prompt function returns a
value other than a string. In this case a default prompt is returned.

This change also improves the way we write prompts for the debugger.
Instead of writing out the prompt each time the debugger stops, we write
out the details about the breakpoint that was hit, if any. We also try to
preserve any session context at the beginning of the prompt string like
the remote computer name or process ID.

Fixes #339.

This change adds a catch for the InvalidCastException when gathering the
user's prompt string in the case where their prompt function returns a
value other than a string.  In this case a default prompt is returned.

This change also improves the way we write prompts for the debugger.
Instead of writing out the prompt each time the debugger stops, we write
out the details about the breakpoint that was hit, if any.  We also try to
preserve any session context at the beginning of the prompt string like
the remote computer name or process ID.

Fixes #339.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants